<extend name="../layout" />

<block name="main_content">
    
    <div class="row-fluid">
        <div class="span8">
            <div class="widget-box">
                <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
                    <h5>{:L('add_workflow_node')}</h5>
                </div>
                <div class="widget-content nopadding">
                    <form method="POST" action="__URL__/insert">
                        <table class="table table-bordered table-striped with-check">
                            <tr>
                                <th>{:L('action_name')}</th>
                                <td>
                                    <input type="text" name="name" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('action_type')}</th>
                                <td>
                                    <html:select name="type" options="theTypes" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('execute_file')}</th>
                                <td>
                                    <input type="text" name="execute_file" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('listorder')}</th>
                                <td>
                                    <input type="text" name="listorder" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('prev_node_id')}</th>
                                <td>
                                    <input type="text" name="prev_node_id" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('default')}</th>
                                <td>
                                    <label>
                                        <input type="radio" name="default" value="1" />是
                                    </label>
                                    <label>
                                        <input type="radio" name="default" value="0" checked />否
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('next_node_id')}</th>
                                <td>
                                    <input type="text" name="next_node_id" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('executor')}</th>
                                <td>
                                    <input type="text" name="executor" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('status_text')}</th>
                                <td>
                                    <input type="text" name="status_text" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('btn_class')}</th>
                                <td>
                                    <input type="text" name="btn_class" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th>{:L('status_class')}</th>
                                <td>
                                    <input type="text" name="status_class" class="span12" />
                                </td>
                            </tr>
                            <tr>
                                <th colspan="2">
                                    <input type="hidden" name="workflow_id" value="{$theWorkflow.id}" />
                                    <input type="submit" value="{:L('submit')}" class="btn btn-primary" />
                                    <a href="javascript:history.go(-1);" class="btn">{:L('go_back');}</a>
                                </th>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
    
</block>